package com.cy.service;

import com.cy.bean.Driverschool;
import com.cy.mapper.GetCoachInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GetCoachServiceImpl implements GetCoachInfoService{
    @Autowired
    private GetCoachInfoMapper getCoachInfoMapper;
    @Override
    public List<Driverschool> getCoachInfo() {
        return getCoachInfoMapper.getCoachInfo();
    }

    @Override
    public int addDriverSchool(Driverschool driverschool) {
        int info= getCoachInfoMapper.addDriverSchool(driverschool);
        return info;
    }
}
